const db=require('../util/db.js');
const mysql=require('mysql');
exports.isExist=(admin,callback_service)=>{
    let sql=mysql.format("select * from chat_admin where admin_account = ? and admin_password = ?",[admin.admin_account,admin.admin_password]);
    db.query(sql,(data,error)=>{
        callback_service(data,error);
    });
}